< previous page page_152 next page >

Page 152
Exponentiation (^) and equality (=)
Not equal (<>)
Multiplication (*), division(/), and less than (<)
Integer division (\) and greater than (>)
Modulus (Mod) and less than or equal to (<=)
Addition (+), subtraction (-), and greater than or equal to (>=)
Summary
Arrays can be used when you need to store many elements under a common name. You have the option using of single- or multidimensional arrays. User-defined types allow you to create your own custom data type based on a combination of the simple data types. Constants are used so that you dont need to hard-code the same values over and over again in your applications. By creating a constant, you make it much easier to change the constants value later without having to search through your entire application.
Review Questions
1. What will the following code produce?
Dim aintValues() As Integer

ReDim aintValues(1)
aintValues(0) = 10
Print aintValues(0)
What is displayed by the following code?
ReDim aintValues(2)
aintValues(1) = 20
Print aintValues(0)
What is displayed by the following code?
Print aintValues(1)

 
< previous page page_152 next page >

If you like this book, buy it!